package com.stock.api.service.stock;

import com.stock.api.domain.stock.StockHistoryBean;

/**
 * <p>类说明</p>
 *
 * @author 张峰 zfvip_it@163.com
 * @createTime: 2016/9/13 16:56
 */
public interface StockHistoryService {

    /**
     * 更新股票历史数据
     */
    int extactStockHistoryData(String stockDate) throws Exception;

    /**
     * 更新股票实时数据,只能更新当天数据
     *
     * @throws Exception
     */
    int extactStockRealTimeData() throws Exception;

    /***
     * 根据日期和股票代码更新收盘数据
     *
     * @param date
     * @param stock_code
     */
    void extactStockHistoryData(String date, String stock_code);

    /***
     * 根据股票代码和日期获取收盘数据
     *
     * @param date
     * @param stock_code
     * @return
     */
    StockHistoryBean getStockHistoryData(String date, String stock_code);
}
